package com.nondo.dean.dealer.model.param;


import java.util.List;

import javax.validation.constraints.NotNull;

import com.nondo.dean.dealer.model.result.ActivityProductResult;

/**
 * @author xiaofan
 * @Description: 接收新建活动参数
 * @throws
 * @date 2018-05-0910:48
 * @Version 0.1
 */
public class ActivityParam {
    /**
     * 活动名称
     */
    @NotNull(message = "活动名称不能为空")
    private String name;
    /**
     * 活动内容
     */
    private String body;
    /**
     * 活动开始时间
     */
    @NotNull(message = "活动开始时间不能为空")
    private String beginData;
    /**
     * 活动结束时间
     */
    @NotNull(message = "活动结束时间不能为空")
    private String endData;
    /**
     * 活动模板ID
     */
    @NotNull(message = "活动模板不能为空")
    private Integer templateId;
    /**
     * 折扣率
     */
    @NotNull(message = "活动折扣不能为空")
    private Float discountRate;
    /**
     * 活动产品
     */
    @NotNull(message = "活动产品不能为空")
    private List<ActivityProductResult> productResultList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBeginData() {
        return beginData;
    }
    /**
     *  默认活动时间早上八点
     */
    public void setBeginData(String beginData) {
        this.beginData = beginData + " 08:00:00";
    }

    public String getEndData() {
        return endData;
    }
    /**
     * 默认活动时间晚上八点
     */
    public void setEndData(String endData) {
        this.endData = endData + " 20:00:00";
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public Float getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(Float discountRate) {
        this.discountRate = discountRate;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public List<ActivityProductResult> getProductResultList() {
        return productResultList;
    }

    public void setProductResultList(List<ActivityProductResult> productResultList) {
        this.productResultList = productResultList;
    }

}
